<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
	$router->get('/configs', 'HomeController@configs')->name('admin.config');
	$router->resource('/categorys', 'CategoryController')->names('admin.category');
    $router->resource('/tags', 'TagController')->names('admin.tag');
    $router->resource('/comments', 'CommentController')->names('admin.comment');
    $router->resource('/articles', 'ArticleController')->names('admin.article');
    $router->resource('/users', 'UserController')->names('admin.user');
    $router->resource('/chats', 'ChatController')->names('admin.chat');
    $router->resource('/links', 'LinkController')->names('admin.link');
    $router->post('uploadImage', 'ArticleController@uploadImage')->name('admin.uploadImage');
});
